package com.cljz.makepassenger.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.cljz.makepassenger.model.net.bean.InviteContentBean;

import java.util.ArrayList;
import java.util.List;

/**想要在两个activity之间传递对象，那么这个对象必须序列化
 * Created by apple on 2017/5/4.
 */

public class PublishReqBean implements Parcelable {

    private String invite_time = "";
    private String landmark = "";
    private String address = "";
    private String title = "";
    private String invitation_id = "";
    private String easemob_id = "";
    private String is_activity = "";
    private String title2 = "";
    private String type_id = "";
    private String number_all = "";
    private String content = "";
    private String time_start = "";
    private String time_end = "";
    private String img_path = "";
    private String img_other = "";
    private String region_id3 = "";
    private String longitude = "";
    private String latitude = "";

    private String activityType;
    private String coverBitmapPath;
    private ArrayList<String> picList;

    public String getCoverBitmapPath() {
        return coverBitmapPath;
    }

    public void setCoverBitmapPath(String coverBitmapPath) {
        this.coverBitmapPath = coverBitmapPath;
    }




    private List<InviteContentBean.DataBean> beanList;

    public String getActivityType() {
        return activityType;
    }

    public void setActivityType(String activityType) {
        this.activityType = activityType;
    }


    public ArrayList<String> getPicList() {
        return picList;
    }

    public void setPicList(ArrayList<String> picList) {
        this.picList = picList;
    }


    @Override
    public String toString() {

        return "{" +
                "invite_time:" + invite_time +
                ", landmark:" + landmark +
                ", address:" + address +
                ", title:" + title +
                ", invitation_id:" + invitation_id +
                ", easemob_id:" + easemob_id +
                ", is_activity:" + is_activity +
                ", title2:" + title2 +
                ", type_id:" + type_id +
                ", number_all:" + number_all +
                ", content:" + content +
                ", time_start:" + time_start +
                ", time_end:" + time_end +
                ", img_path:" + img_path +
                ", img_other:" + img_other +
                ", region_id3:" + region_id3 +
                ", longitude:" + longitude +
                ", latitude:" + latitude +

                ", activityType:" + activityType +
                ", coverBitmapPath:" + coverBitmapPath +
                ", picList:" + picList +

                "}";
    }


    public String getInvite_time() {
        return invite_time;
    }

    public void setInvite_time(String invite_time) {
        this.invite_time = invite_time;
    }

    public String getLandmark() {
        return landmark;
    }

    public void setLandmark(String landmark) {
        this.landmark = landmark;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getInvitation_id() {
        return invitation_id;
    }

    public void setInvitation_id(String invitation_id) {
        this.invitation_id = invitation_id;
    }

    public String getEasemob_id() {
        return easemob_id;
    }

    public void setEasemob_id(String easemob_id) {
        this.easemob_id = easemob_id;
    }

    public String getIs_activity() {
        return is_activity;
    }

    public void setIs_activity(String is_activity) {
        this.is_activity = is_activity;
    }

    public String getTitle2() {
        return title2;
    }

    public void setTitle2(String title2) {
        this.title2 = title2;
    }

    public String getType_id() {
        return type_id;
    }

    public void setType_id(String type_id) {
        this.type_id = type_id;
    }

    public String getNumber_all() {
        return number_all;
    }

    public void setNumber_all(String number_all) {
        this.number_all = number_all;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime_start() {
        return time_start;
    }

    public void setTime_start(String time_start) {
        this.time_start = time_start;
    }

    public String getTime_end() {
        return time_end;
    }

    public void setTime_end(String time_end) {
        this.time_end = time_end;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    public String getImg_other() {
        return img_other;
    }

    public void setImg_other(String img_other) {
        this.img_other = img_other;
    }

    public String getRegion_id3() {
        return region_id3;
    }

    public void setRegion_id3(String region_id3) {
        this.region_id3 = region_id3;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public void setInviteContent(List<InviteContentBean.DataBean> beanList) {
        this.beanList = beanList;
    }

    public List<InviteContentBean.DataBean> getBeanList() {
        return beanList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.invite_time);
        dest.writeString(this.landmark);
        dest.writeString(this.address);
        dest.writeString(this.title);
        dest.writeString(this.invitation_id);
        dest.writeString(this.easemob_id);
        dest.writeString(this.is_activity);
        dest.writeString(this.title2);
        dest.writeString(this.type_id);
        dest.writeString(this.number_all);
        dest.writeString(this.content);
        dest.writeString(this.time_start);
        dest.writeString(this.time_end);
        dest.writeString(this.img_path);
        dest.writeString(this.img_other);
        dest.writeString(this.region_id3);
        dest.writeString(this.longitude);
        dest.writeString(this.latitude);
        dest.writeString(this.activityType);
        dest.writeString(this.coverBitmapPath);
        dest.writeStringList(this.picList);
        dest.writeList(this.beanList);
    }

    public PublishReqBean() {
    }

    protected PublishReqBean(Parcel in) {
        this.invite_time = in.readString();
        this.landmark = in.readString();
        this.address = in.readString();
        this.title = in.readString();
        this.invitation_id = in.readString();
        this.easemob_id = in.readString();
        this.is_activity = in.readString();
        this.title2 = in.readString();
        this.type_id = in.readString();
        this.number_all = in.readString();
        this.content = in.readString();
        this.time_start = in.readString();
        this.time_end = in.readString();
        this.img_path = in.readString();
        this.img_other = in.readString();
        this.region_id3 = in.readString();
        this.longitude = in.readString();
        this.latitude = in.readString();
        this.activityType = in.readString();
        this.coverBitmapPath = in.readString();
        this.picList = in.createStringArrayList();
        this.beanList = new ArrayList<InviteContentBean.DataBean>();
        in.readList(this.beanList, InviteContentBean.DataBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<PublishReqBean> CREATOR = new Parcelable.Creator<PublishReqBean>() {
        @Override
        public PublishReqBean createFromParcel(Parcel source) {
            return new PublishReqBean(source);
        }

        @Override
        public PublishReqBean[] newArray(int size) {
            return new PublishReqBean[size];
        }
    };
}
